<%--
  Created by IntelliJ IDEA.
  User: xiaoktongxue
  Date: 2024/11/16
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试</title>
    hello <%=request.getAttribute("myname")%>

    <h1 style="text-align:center">表单验证</h1>
    <div style="display: flex;width: 500px;gap:10px;margin: auto">
        <form action="reg"  method="post" enctype="multipart/form-data"
              style="display: grid;grid-template-columns: 100px 200px;gap: 10px;
                width: 330px;margin: auto;padding: 10px;border: 1px solid #777">
            账号：<input name="name">
            年龄：<input name="age">
            性别：<input name="gender">
            邮箱：<input name="email">
            生日：<input name="birthday" type="date">
            头像：<input name="head" type="file">
            <button>注册</button>
            <button formaction="upload">上传头像</button>
        </form>
    </div>
</head>
<body>

<%
    System.out.println("---------------test.jsp-----------");
%>
</body>
</html>
